.class public Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;
.super Lcom/waiqin365/lightapp/base/WqBaseActivity;

# interfaces
.implements Landroid/support/v4/view/ViewPager$OnPageChangeListener;
.implements Landroid/view/View$OnClickListener;


# instance fields
.field a:Ljava/util/ArrayList;

.field b:Lcom/waiqin365/h5/photo/acty/a;

.field c:Ljava/util/ArrayList;

.field private d:Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewViewPager;

.field private e:Landroid/widget/TextView;

.field private f:Landroid/widget/ImageView;

.field private g:Landroid/widget/TextView;

.field private h:Landroid/widget/TextView;

.field private i:I

.field private j:Ljava/lang/String;

.field private k:I


# direct methods
.method public constructor <init>()V
    .locals 1

    invoke-direct {p0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;-><init>()V

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->a:Ljava/util/ArrayList;

    const/4 v0, 0x0

    iput v0, p0, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->i:I

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;)Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewViewPager;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->d:Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewViewPager;

    return-object v0
.end method

.method private a()V
    .locals 6

    const v5, 0x7f0c0ed4

    const/16 v4, 0x8

    const/4 v3, 0x0

    const v0, 0x7f0c0ed2

    invoke-virtual {p0, v0}, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->e:Landroid/widget/TextView;

    const v0, 0x7f0c0ed1

    invoke-virtual {p0, v0}, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->f:Landroid/widget/ImageView;

    iget-object v0, p0, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->f:Landroid/widget/ImageView;

    invoke-virtual {v0, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0c0ed6

    invoke-virtual {p0, v0}, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->h:Landroid/widget/TextView;

    const v0, 0x7f0c0ed7

    invoke-virtual {p0, v0}, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->g:Landroid/widget/TextView;

    const v0, 0x7f0c0ecf

    invoke-virtual {p0, v0}, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewViewPager;

    iput-object v0, p0, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->d:Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewViewPager;

    iget-object v0, p0, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->d:Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewViewPager;

    invoke-virtual {v0, p0}, Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewViewPager;->setOnPageChangeListener(Landroid/support/v4/view/ViewPager$OnPageChangeListener;)V

    iget-object v0, p0, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->a:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    iget v1, p0, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->i:I

    if-le v0, v1, :cond_0

    iget-object v0, p0, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->a:Ljava/util/ArrayList;

    iget v1, p0, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->i:I

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/h5/photo/acty/f;

    iget-object v1, v0, Lcom/waiqin365/h5/photo/acty/f;->b:Ljava/lang/String;

    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->h:Landroid/widget/TextView;

    invoke-virtual {v0, v4}, Landroid/widget/TextView;->setVisibility(I)V

    :goto_0
    iget-object v0, p0, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->a:Ljava/util/ArrayList;

    iget v2, p0, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->i:I

    invoke-virtual {v0, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/h5/photo/acty/f;

    iget-object v0, v0, Lcom/waiqin365/h5/photo/acty/f;->c:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v2

    if-eqz v2, :cond_2

    iget-object v2, p0, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->g:Landroid/widget/TextView;

    invoke-virtual {v2, v4}, Landroid/widget/TextView;->setVisibility(I)V

    :goto_1
    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-eqz v1, :cond_3

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_3

    invoke-virtual {p0, v5}, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ScrollView;

    invoke-virtual {v0, v4}, Landroid/widget/ScrollView;->setVisibility(I)V

    :goto_2
    iget-object v0, p0, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->a:Ljava/util/ArrayList;

    iget v1, p0, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->i:I

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/h5/photo/acty/f;

    iget-object v0, v0, Lcom/waiqin365/h5/photo/acty/f;->d:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-nez v1, :cond_4

    iget-object v1, p0, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->e:Landroid/widget/TextView;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v2, "("

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget v2, p0, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->i:I

    add-int/lit8 v2, v2, 0x1

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v2, "/"

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget v2, p0, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->k:I

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v2, ")"

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :cond_0
    :goto_3
    return-void

    :cond_1
    iget-object v0, p0, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->h:Landroid/widget/TextView;

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->h:Landroid/widget/TextView;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_0

    :cond_2
    iget-object v2, p0, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->g:Landroid/widget/TextView;

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setVisibility(I)V

    iget-object v2, p0, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->g:Landroid/widget/TextView;

    invoke-virtual {v2, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_1

    :cond_3
    invoke-virtual {p0, v5}, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ScrollView;

    invoke-virtual {v0, v3}, Landroid/widget/ScrollView;->setVisibility(I)V

    goto :goto_2

    :cond_4
    iget-object v0, p0, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->e:Landroid/widget/TextView;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v2, p0, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->j:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, "("

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget v2, p0, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->i:I

    add-int/lit8 v2, v2, 0x1

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, "/"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget v2, p0, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->k:I

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, ")"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_3
.end method


# virtual methods
.method public a(Landroid/content/Context;Landroid/graphics/Bitmap;)V
    .locals 5

    new-instance v0, Ljava/io/File;

    invoke-static {}, Landroid/os/Environment;->getExternalStorageDirectory()Ljava/io/File;

    move-result-object v1

    const-string/jumbo v2, "Boohee"

    invoke-direct {v0, v1, v2}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V

    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result v1

    if-nez v1, :cond_0

    invoke-virtual {v0}, Ljava/io/File;->mkdir()Z

    :cond_0
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v2

    invoke-virtual {v1, v2, v3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, ".jpg"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    new-instance v2, Ljava/io/File;

    invoke-direct {v2, v0, v1}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V

    :try_start_0
    new-instance v0, Ljava/io/FileOutputStream;

    invoke-direct {v0, v2}, Ljava/io/FileOutputStream;-><init>(Ljava/io/File;)V

    sget-object v3, Landroid/graphics/Bitmap$CompressFormat;->JPEG:Landroid/graphics/Bitmap$CompressFormat;

    const/16 v4, 0x64

    invoke-virtual {p2, v3, v4, v0}, Landroid/graphics/Bitmap;->compress(Landroid/graphics/Bitmap$CompressFormat;ILjava/io/OutputStream;)Z

    invoke-virtual {v0}, Ljava/io/FileOutputStream;->flush()V

    invoke-virtual {v0}, Ljava/io/FileOutputStream;->close()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :goto_0
    :try_start_1
    invoke-virtual {p1}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v0

    invoke-virtual {v2}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v2

    const/4 v3, 0x0

    invoke-static {v0, v2, v1, v3}, Landroid/provider/MediaStore$Images$Media;->insertImage(Landroid/content/ContentResolver;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
    :try_end_1
    .catch Ljava/io/FileNotFoundException; {:try_start_1 .. :try_end_1} :catch_1

    :goto_1
    const v0, 0x7f080718

    invoke-virtual {p0, v0}, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-static {p0, v0}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;)V

    return-void

    :catch_0
    move-exception v0

    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    goto :goto_0

    :catch_1
    move-exception v0

    invoke-virtual {v0}, Ljava/io/FileNotFoundException;->printStackTrace()V

    goto :goto_1
.end method

.method public back()V
    .locals 2

    invoke-virtual {p0}, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->finish()V

    const/4 v0, 0x0

    const v1, 0x7f040028

    invoke-virtual {p0, v0, v1}, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->overridePendingTransition(II)V

    return-void
.end method

.method public onBackPressed()V
    .locals 0

    invoke-virtual {p0}, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->back()V

    return-void
.end method

.method public onClick(Landroid/view/View;)V
    .locals 1

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    packed-switch v0, :pswitch_data_0

    :goto_0
    return-void

    :pswitch_0
    invoke-virtual {p0}, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->back()V

    goto :goto_0

    :pswitch_data_0
    .packed-switch 0x7f0c0ed1
        :pswitch_0
    .end packed-switch
.end method

.method public onCreate(Landroid/os/Bundle;)V
    .locals 4

    const/16 v2, 0x400

    const/4 v1, 0x0

    const v0, 0x7f040027

    invoke-virtual {p0, v0, v1}, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->overridePendingTransition(II)V

    invoke-super {p0, p1}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onCreate(Landroid/os/Bundle;)V

    const/4 v0, 0x1

    invoke-virtual {p0, v0}, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->requestWindowFeature(I)Z

    invoke-virtual {p0}, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->getWindow()Landroid/view/Window;

    move-result-object v0

    invoke-virtual {v0, v2, v2}, Landroid/view/Window;->setFlags(II)V

    const v0, 0x7f0302de

    invoke-virtual {p0, v0}, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->setContentView(I)V

    invoke-virtual {p0}, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v2, "position"

    invoke-virtual {v0, v2, v1}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result v0

    iput v0, p0, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->i:I

    invoke-virtual {p0}, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v2, "title"

    invoke-virtual {v0, v2}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->j:Ljava/lang/String;

    iget-object v0, p0, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->j:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_3

    const-string/jumbo v0, ""

    :goto_0
    iput-object v0, p0, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->j:Ljava/lang/String;

    sget-object v0, Lcom/waiqin365/h5/a;->a:Ljava/util/ArrayList;

    iput-object v0, p0, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->c:Ljava/util/ArrayList;

    iget-object v0, p0, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->c:Ljava/util/ArrayList;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->c:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-gtz v0, :cond_1

    :cond_0
    invoke-virtual {p0}, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->finish()V

    :cond_1
    iget-object v0, p0, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->c:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    iput v0, p0, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->k:I

    move v2, v1

    :goto_1
    iget-object v0, p0, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->c:Ljava/util/ArrayList;

    if-eqz v0, :cond_8

    iget-object v0, p0, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->c:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-ge v2, v0, :cond_8

    new-instance v3, Lcom/waiqin365/h5/photo/acty/f;

    invoke-direct {v3, p0}, Lcom/waiqin365/h5/photo/acty/f;-><init>(Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;)V

    iget-object v0, p0, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->c:Ljava/util/ArrayList;

    invoke-virtual {v0, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/HashMap;

    if-eqz v0, :cond_2

    const-string/jumbo v1, "path"

    invoke-virtual {v0, v1}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_4

    const-string/jumbo v1, "path"

    invoke-virtual {v0, v1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/String;

    :goto_2
    iput-object v1, v3, Lcom/waiqin365/h5/photo/acty/f;->a:Ljava/lang/String;

    const-string/jumbo v1, "img_title"

    invoke-virtual {v0, v1}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_5

    const-string/jumbo v1, "img_title"

    invoke-virtual {v0, v1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/String;

    :goto_3
    iput-object v1, v3, Lcom/waiqin365/h5/photo/acty/f;->b:Ljava/lang/String;

    const-string/jumbo v1, "img_message"

    invoke-virtual {v0, v1}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_6

    const-string/jumbo v1, "img_message"

    invoke-virtual {v0, v1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/String;

    :goto_4
    iput-object v1, v3, Lcom/waiqin365/h5/photo/acty/f;->c:Ljava/lang/String;

    const-string/jumbo v1, "title"

    invoke-virtual {v0, v1}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_7

    const-string/jumbo v1, "title"

    invoke-virtual {v0, v1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    :goto_5
    iput-object v0, v3, Lcom/waiqin365/h5/photo/acty/f;->d:Ljava/lang/String;

    iget-object v0, p0, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->a:Ljava/util/ArrayList;

    invoke-virtual {v0, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    :cond_2
    add-int/lit8 v0, v2, 0x1

    move v2, v0

    goto :goto_1

    :cond_3
    iget-object v0, p0, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->j:Ljava/lang/String;

    goto/16 :goto_0

    :cond_4
    const-string/jumbo v1, ""

    goto :goto_2

    :cond_5
    const-string/jumbo v1, ""

    goto :goto_3

    :cond_6
    const-string/jumbo v1, ""

    goto :goto_4

    :cond_7
    const-string/jumbo v0, ""

    goto :goto_5

    :cond_8
    invoke-direct {p0}, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->a()V

    new-instance v0, Lcom/waiqin365/h5/photo/acty/a;

    invoke-direct {v0, p0, p0}, Lcom/waiqin365/h5/photo/acty/a;-><init>(Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;Landroid/content/Context;)V

    iput-object v0, p0, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->b:Lcom/waiqin365/h5/photo/acty/a;

    iget-object v0, p0, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->d:Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewViewPager;

    iget-object v1, p0, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->b:Lcom/waiqin365/h5/photo/acty/a;

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewViewPager;->setAdapter(Landroid/support/v4/view/PagerAdapter;)V

    iget v0, p0, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->i:I

    if-ltz v0, :cond_9

    iget-object v0, p0, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->d:Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewViewPager;

    iget v1, p0, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->i:I

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewViewPager;->setCurrentItem(I)V

    :cond_9
    return-void
.end method

.method protected onDestroy()V
    .locals 2

    const/4 v1, 0x0

    invoke-super {p0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onDestroy()V

    iget-object v0, p0, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->c:Ljava/util/ArrayList;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->c:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V

    iput-object v1, p0, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->c:Ljava/util/ArrayList;

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->a:Ljava/util/ArrayList;

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->a:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V

    iput-object v1, p0, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->a:Ljava/util/ArrayList;

    :cond_1
    return-void
.end method

.method public onPageScrollStateChanged(I)V
    .locals 0

    return-void
.end method

.method public onPageScrolled(IFI)V
    .locals 0

    return-void
.end method

.method public onPageSelected(I)V
    .locals 6

    const/16 v5, 0x8

    const v4, 0x7f0c0ed4

    const/4 v3, 0x0

    if-gez p1, :cond_0

    :goto_0
    return-void

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->a:Ljava/util/ArrayList;

    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/h5/photo/acty/f;

    iget-object v1, v0, Lcom/waiqin365/h5/photo/acty/f;->b:Ljava/lang/String;

    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->h:Landroid/widget/TextView;

    const/4 v2, 0x4

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setVisibility(I)V

    :goto_1
    iget-object v0, p0, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->a:Ljava/util/ArrayList;

    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/h5/photo/acty/f;

    iget-object v0, v0, Lcom/waiqin365/h5/photo/acty/f;->c:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v2

    if-eqz v2, :cond_2

    iget-object v2, p0, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->g:Landroid/widget/TextView;

    invoke-virtual {v2, v5}, Landroid/widget/TextView;->setVisibility(I)V

    :goto_2
    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-eqz v1, :cond_3

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_3

    invoke-virtual {p0, v4}, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ScrollView;

    invoke-virtual {v0, v5}, Landroid/widget/ScrollView;->setVisibility(I)V

    :goto_3
    iget-object v0, p0, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->a:Ljava/util/ArrayList;

    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/h5/photo/acty/f;

    iget-object v0, v0, Lcom/waiqin365/h5/photo/acty/f;->d:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-nez v1, :cond_4

    iget-object v1, p0, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->e:Landroid/widget/TextView;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v2, "("

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    add-int/lit8 v2, p1, 0x1

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v2, "/"

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget v2, p0, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->k:I

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v2, ")"

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :goto_4
    invoke-virtual {p0, v4}, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ScrollView;

    invoke-virtual {v0, v3, v3}, Landroid/widget/ScrollView;->scrollTo(II)V

    goto/16 :goto_0

    :cond_1
    iget-object v0, p0, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->h:Landroid/widget/TextView;

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->h:Landroid/widget/TextView;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto/16 :goto_1

    :cond_2
    iget-object v2, p0, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->g:Landroid/widget/TextView;

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setVisibility(I)V

    iget-object v2, p0, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->g:Landroid/widget/TextView;

    invoke-virtual {v2, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_2

    :cond_3
    invoke-virtual {p0, v4}, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ScrollView;

    invoke-virtual {v0, v3}, Landroid/widget/ScrollView;->setVisibility(I)V

    goto :goto_3

    :cond_4
    iget-object v0, p0, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->e:Landroid/widget/TextView;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v2, p0, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->j:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, "("

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    add-int/lit8 v2, p1, 0x1

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, "/"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget v2, p0, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->k:I

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, ")"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_4
.end method
